package cn.ht.jywrwater.module.ht.controller.admin.statisticsdevicecount.vo;

import cn.ht.jywrwater.framework.excel.core.annotations.DictFormat;
import cn.ht.jywrwater.framework.excel.core.convert.DictConvert;
import com.alibaba.excel.annotation.ExcelProperty;
import lombok.Data;

import java.time.LocalDateTime;


/**
 * 设备在线统计 Excel VO
 *
 * @author hzx
 */
@Data
public class StatisticsDeviceCountExcelVO {

    @ExcelProperty("ID")
    private Long id;

    @ExcelProperty(value = "设备类型", converter = DictConvert.class)
    @DictFormat("water_device_type") // TODO 代码优化：建议设置到对应的 XXXDictTypeConstants 枚举类中
    private Integer type;

    @ExcelProperty("在线数")
    private Integer onlineCount;

    @ExcelProperty("总数")
    private Integer totalCount;

    @ExcelProperty("创建时间")
    private LocalDateTime createTime;

}
